app.controller('classifyController', function($http, $scope, utilService, $location, $routeParams) {
	
	var initList = function() {

		utilService.ajax({
			url: '../../../shopping2/api/classify_list.php',
			ok: function(response) {
				if (response.success) {
					$scope.cList = response.data;
				} else {
					// ...
				}
			}
		}, $scope);

		// $scope.showLoading = true;

		// $http({
		// 	url: '../../../shopping2/api/classify_list.php',
		// 	method: 'get',
		// 	params: {}
		// }).success(function(response) {
		// 	if (response.success) {
		// 		$scope.cList = response.data;
		// 	} else {
		// 		// ...
		// 	}
		// 	$scope.showLoading = false;
		// });

	};

	$scope.$on("$viewContentLoaded", function(){
        initList();
        // urlService.setNavStatus($location.$$path);
    });

	$scope.$on('$routeChangeStart', function() {
		console.log(arguments)
	});

});